﻿@model E_Learning_V3.Models.Emne
@{
    ViewBag.Title = "Opret emne";
}
@section scripts{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Opret nyt emne</legend>
        <div class="editor-label">
            Emne navn:
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.emnenavn)
            @Html.ValidationMessageFor(model => model.emnenavn)
        </div>
        <p>
            <input type="submit" value="Opret og Gem" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Tilbage til listen", "IndexAdmin")
</div>
